package collectionexample;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

/**
 * Created with IntelliJ IDEA.
 * User: myubuntu
 * Date: 10/18/13
 * Time: 5:45 PM
 * To change this template use File | Settings | File Templates.
 */
public class collectionexample {
    public static void main(String[] args) {

        Map<String, String> phoneBook = new TreeMap<String, String>();

        phoneBook.put("Bill", "832-367-0666");
        phoneBook.put("Archer", "818-555-1234");
        phoneBook.put("Lana", "818-555-4321");

        for(String person:phoneBook.keySet()) {


            System.out.println(person + "- " + phoneBook.get(person));
        }




    }
}
